'use strict';

const Controller = require('egg').Controller;

class RoutersController extends Controller {
  async index() {
    const { ctx } = this;
    const res = await ctx.service.routers.find();
    ctx.success(res);
  }
}

module.exports = RoutersController;
